package com.example.datn.manager;

import java.util.ArrayList;

import com.example.datn.objects.VideoObject;

public class VideoManager {

	public static final VideoManager INSTANCE = new VideoManager();
	private ArrayList<VideoObject> ListVideo = new ArrayList<VideoObject>();
	private VideoObject currentVideo = null;
	
	
	public ArrayList<VideoObject> getListVideo() {
		return ListVideo;
	}
	public void setListVideo(ArrayList<VideoObject> listVideo) {
		ListVideo = listVideo;
	}
	
	public VideoObject getCurrentVideo() {
		return currentVideo;
	}
	public void setCurrentVideo(VideoObject currentVideo) {
		this.currentVideo = currentVideo;
	}
	
	public static VideoManager getInstance(){
		return INSTANCE;
	}
	
	public void release(){
		this.ListVideo.clear();
		this.currentVideo = null;
	}
	
}
